package part1.oo.ooday02;

/** 老师：派生类 */
public class Teacher extends Person {
    double salary;

    Teacher(String name,int age,String adress,double salary){
        super(name,age,adress);
        this.salary = salary;
    }
    void teach(){
        System.out.println(name+"正在讲课...");
    }
}
